package com.baseproject.datasource;


import com.baseproject.component.AppModule;

import javax.inject.Singleton;

import dagger.Component;

/**
 * This is a Dagger component. Refer to { TaobaoApplication} for the list of Dagger components
 * used in this application.
 * <p>
 * Even though Dagger allows annotating a {@link Component @Component} as a singleton, the code
 * itself must ensure only one instance of the class is created. This is done in {
 * TaobaoApplication}.
 */
@Singleton
@Component(modules = {RepositoryModule.class, AppModule.class})
public interface RepositoryComponent {
    Repository provideRepository();
}

